<?php
$cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
$cakeVersion = __d('cake_dev', 'CakePHP %s', Configure::version())
?>
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
          <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
        <?php echo $this->Html->charset(); ?>
        <title>
            <?php echo $cakeDescription ?>:
            <?php echo $this->fetch('title'); ?>
        </title>
        <?php
        echo $this->Html->meta('icon');
        echo $this->Html->css('bootstrap');
        echo $this->Html->css('me');
        echo $this->Html->css('menu/new_menu');
        echo $this->fetch('meta');
        echo $this->fetch('css');
        echo $this->fetch('script');
        ?>
    </head>
    <body>
        <div class="container-fluid">  
            <div class="row margin-top">
                <div class="col-md-3">
                    <?php
                    echo $this->Html->link($this->Html->image('logo_harrison.jpg', array('width' => '100%', 'height' => 'auto')), '/', array(
                        'escape' => false,
                        'title' => $cakeDescription
                    ));
                    ?>
                    <div class="col-md-12 text-center">
                        <?php $name = $this->Session->read('User.first_name').'  '.$this->Session->read('User.last_name')?>
                        <h4><?php echo $name?></h4>
                        <?php
                        echo $this->Html->link('Log out', '/Admins/logout/', array(
                            'escape' => false,
                            'title' => '',
                            'class' => ''
                        ));
                        ?>
                    </div>
                    <div class="list-group margin-top">
                        <h4>Notifications</h4>
                        <?php
                        echo $this->Html->link('New Message <span class="badge">14</span>', '/', array(
                            'escape' => false,
                            'title' => '',
                            'class' => 'list-group-item'
                        ));
                        echo $this->Html->link('Edit Email', '/WebSettings/edit/1/', array(
                            'escape' => false,
                            'title' => '',
                            'class' => 'list-group-item'
                        ));
                        ?>                       
                    </div>
                    <div class="list-group margin-top">
                        <h4>Project Management</h4>
                        <?php
                        echo $this->Html->link('Residential', '/AdminProjects/index/'.RESIDENTIALL_ID, array(
                            'escape' => false,
                            'title' => '',
                            'class' => 'list-group-item'
                        ));
                        echo $this->Html->link('Commercial', '/Admins/logout/', array(
                            'escape' => false,
                            'title' => '',
                            'class' => 'list-group-item'
                        ));
                        echo $this->Html->link('Land And Invesment', '/Admins/logout/', array(
                            'escape' => false,
                            'title' => '',
                            'class' => 'list-group-item'
                        ));
                        ?>
                        <a href="#" class="list-group-item disabled">
                            Cras justo odio
                        </a>                        
                    </div>
                    <div class="list-group margin-top">
                        <h4>System</h4>
                        <?php
                        echo $this->Html->link('Property', '/Properties', array(
                            'escape' => false,
                            'title' => '',
                            'class' => 'list-group-item'
                        ));
                        echo $this->Html->link('Career', '/Careers/listAll', array(
                            'escape' => false,
                            'title' => '',
                            'class' => 'list-group-item'
                        ));
                        ?>
                    </div>

                </div>
                <div class="col-md-9">
                    <?php echo $this->Session->flash(); ?>

                    <?php echo $this->fetch('content'); ?>
                </div>
            </div>

        </div>



        <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
        <!-- Include all compiled plugins (below), or include individual files as needed -->
        <?php
        echo $this->Html->script('bootstrap');
        ?>
        <?php //echo $this->element('sql_dump'); ?>
    </body>
</html>